package com.ibeeking.found.cop.service.common.enums;

public enum GroupStatusEnum {
    STATUS_EMPLOYEE_OK(0, "跟进人正常"),
    STATUS_EMPLOYEE_OFF(1, " 跟进人离职"),
    STATUS_FOLLOER_ASSIGNING(2, "离职继承中"),
    STATUS_FOLLOER_ASSIGNED(3, "离职继承完成");

    private Integer code;
    private String desc;

    GroupStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (GroupStatusEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
